#ifndef AXISPIDWIDGET_H
#define AXISPIDWIDGET_H

#include <QObject>
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QGridLayout>
#include <QPushButton>
#include <QTableWidget>
#include <QHeaderView>
#include "capcontroldefine.h"

class QAxisPIDWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QAxisPIDWidget(int i32AxisNo,QString sAxisName,QWidget *parent = nullptr);

    ~QAxisPIDWidget();

    void showRcvdata(st_loopdata_AA loopAA);

signals:

    void signal_setpid(int i32AxisNo,int nType,float lfkp,float lfki,float lfkd);//ntype 1-电流环 2-速度环 3-位置环

public slots:
    void onSetParamButtonClick();
//    void onShowKidParam(int i32AxisNo,float lfkp,float lfki,float lfkd);


private:
    void InitUI();

private:

    QTableWidget*_pParamSetWidget;

private:
    int _i32AxisNo;
    QString _sAxisName;

    st_loopdata_AA _rcvdata_AA;//AA帧

};

#endif // AXISPIDWIDGET_H
